package com.xjzd.spring.converter;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestConverter {

    @GetMapping("/converter")
    public ResponseEntity<Object> test(@RequestParam("q") Dog dog) {
        return ResponseEntity.ok(dog);
    }
}
